
let defaultState = {
    message: "hellow world"
}

export default (state=defaultState,action) => {
    switch(action.type) {
        case "SET_COMMUNITY":
            state = action.payload
            return state
        default:
            return state
    }
}